package cn.jetpiece.cloud.joss.app.modular.basics.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 内容类型
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-08
 */
@TableName("oss_content_type")
public class ContentType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件扩展名
     */
    @TableId(value = "file_extension", type = IdType.INPUT)
    private String fileExtension;

    /**
     * 头部内容类型
     */
    @TableField("header_content_type")
    private String headerContentType;

    /**
     * 新增时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public String getFileExtension() {
        return fileExtension;
    }

    public void setFileExtension(String fileExtension) {
        this.fileExtension = fileExtension;
    }

    public String getHeaderContentType() {
        return headerContentType;
    }

    public void setHeaderContentType(String headerContentType) {
        this.headerContentType = headerContentType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ContentType{" +
                "fileExtension=" + fileExtension +
                ", headerContentType=" + headerContentType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
